package tech.aistar.corejava.day02.day02_work;

/**
 * Created by 86133 on 2019/7/16.
 */
public class Test05 {
    public static void main(String[] args) {
        //定义两个变量
        int a = 10;
        int b = 20;
        //运算时运用一个数连续异或同一个数俩次,结果是它本身

        a = a ^ b;
        b = a ^ b;
        a = a ^ b;

        System.out.println("a:"+a);
        System.out.println("b:"+b);
    }
}
